<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin_setup', function (Blueprint $table) {
            $table->id();
            $table->string('name',20)->default('')->comment('名称');
            $table->string('table', 20)->default('')->comment('单页唯一标识，如有重复则会覆盖，小心设置');
            $table->text('value')->comment('json');
        });
        DB::statement("ALTER TABLE `admin_setup` comment '【后台】单页类'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('admin_setup');
    }
};
